package com.cldz.common.dto.req;

import lombok.Data;

/**
 * @ Author     ：lixiao.
 * @ Date       ：Created in 9:25 2018/12/4
 * @ Description：
 * @ Modified By：
 */
@Data
public class PageDto {

    private Integer pageSize = 10;

    private Integer currentPage = 1;

    private Integer limitBegin;

    private Integer limitEnd;

    public Integer getLimitBegin() {
        return (currentPage - 1) * pageSize;
    }

    public Integer getLimitEnd() {
        return limitEnd = pageSize;
    }

}
